import { reactive } from "vue";
import { User } from "../types/user";
export default function userAuth() {
  let user: User = reactive({ username: '测试'});
  if (window.localStorage.getItem("userAuth")) {
    user = JSON.parse(window.localStorage.getItem("userAuth") as string);
  }
  return {
    user,
  };
}
